home *** CD-ROM | disk | FTP | other *** search
/ The CICA Windows Explosion! / The CICA Windows Explosion! - Disc 2.iso / winsock / ircii2-6.zip / SRC\IRCII-2.6\INCLUDE\NAMES.H < prev    next >
C/C++ Source or Header  |  1994-12-28  |  2KB  |  74 lines

  1. /*
  2.  * names.h: Header for names.c
  3.  *
  4.  * Written By Michael Sandrof
  5.  *
  6.  * Copyright(c) 1990 
  7.  *
  8.  * See the COPYRIGHT file, or do a HELP IRCII COPYRIGHT 
  9.  *
  10.  * @(#)$Id: names.h,v 1.7 1994/07/30 17:06:30 mrg Stab $
  11.  */
  12.  
  13. #ifndef _NAMES_H_
  14. #define _NAMES_H_
  15.  
  16. #include "window.h"
  17. #include "irc.h"
  18.  
  19. /* from names.c - "iklmnpst" */
  20. #define MODE_INVITE    ((u_long) 0x0001)
  21. #define MODE_KEY    ((u_long) 0x0002)
  22. #define MODE_LIMIT    ((u_long) 0x0004)
  23. #define MODE_MODERATED    ((u_long) 0x0008)
  24. #define MODE_MSGS    ((u_long) 0x0010)
  25. #define MODE_PRIVATE    ((u_long) 0x0020)
  26. #define MODE_SECRET    ((u_long) 0x0040)
  27. #define MODE_TOPIC    ((u_long) 0x0080)
  28.  
  29. /* ChannelList: structure for the list of channels you are current on */
  30. typedef    struct    channel_stru
  31. {
  32.     struct    channel_stru    *next;    /* pointer to next channel entry */
  33.     char    *channel;        /* channel name */
  34.     int    server;            /* server index for this channel */
  35.     u_long    mode;            /* Current mode settings for channel */
  36.     u_long    i_mode;            /* channel mode for cached string */
  37.     char    *s_mode;        /* cached string version of modes */
  38.     int    limit;            /* max users for the channel */
  39.     char    *key;            /* key for this channel */
  40.     char    chop;            /* true if you are chop */
  41.     Window    *window;        /* the window that the channel is "on" */
  42.     NickList    *nicks;        /* pointer to list of nicks on channel */
  43. }    ChannelList;
  44.  
  45. extern    int    is_channel_mode();
  46. extern    int    is_chanop();
  47. extern    ChannelList    *lookup_channel();
  48. extern    char    *get_channel_mode();
  49. extern    void    add_channel();
  50. extern    void    add_to_channel();
  51. extern    void    remove_channel();
  52. extern    void    remove_from_channel();
  53. extern    int    is_on_channel();
  54. extern    void    list_channels();
  55. extern    void    reconnect_all_channels();
  56. extern    void    switch_channels();
  57. extern    char    *what_channel();
  58. extern    char    *walk_channels();
  59. extern    char    *real_channel();
  60. extern    char    *old_current_channel();
  61. extern    void    rename_nick();
  62. extern    void    update_channel_mode();
  63. extern    void    set_channel_window();
  64. extern    char    *create_channel_list();
  65. extern    int    get_channel_oper();
  66. extern    void    channel_server_delete();
  67. extern    void    change_server_channels();
  68. extern    void    clear_channel_list();
  69. extern    char    *channel_key();
  70. extern    void    set_waiting_channel __P((int));
  71. extern    void    remove_from_mode_list __P((char *));
  72.  
  73. #endif /* _NAMES_H_ */
  74.